import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '文件名',
    dataIndex: 'fileName',
  },
  {
    title: '大小',
    dataIndex: 'fileSize',
  },
  {
    title: '最后修改时间',
    dataIndex: 'lastModifyTime',
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'fileName',
    label: '文件名',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'createTime',
    label: '起止日期',
    component: 'RangePicker',
    colProps: { span: 8 },
    componentProps: {
      showTime: {
        format: 'HH:mm:ss',
      },
      format: 'YYYY-MM-DD HH:mm:ss',
    },
  },
];
